package csel.controller.commands;

import csel.model.GameCommand;
import csel.model.Model;
import csel.view.GameViewport;

public class BMUpgradeSkillCommand implements GameCommand
{

	private Model model;
	private GameViewport gameViewport;
	
	public BMUpgradeSkillCommand(Model model, GameViewport gameViewport)
	{
		this.model = model;
		this.gameViewport = gameViewport;
	}
	
	public void execute()
	{
		model.getPlayerCharacter().upgradeSkill(gameViewport.getSelectedSkill());
	}

}
